package com.itheima.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data //生成get、set方法
@Component //交给容器管理
@ConfigurationProperties(prefix = "aliyun.oss") //批量给属性赋值
public class AliOssProperties {

    String endpoint;
    String accessKeyId;
    String accessKeySecret;
    String bucketName;
}
